home *** CD-ROM | disk | FTP | other *** search
Makefile | 2001-07-02 | 786 b | 36 lines |
- CC := gcc
- LD := gcc
- RM := rm
- CFLAGS := -Wall -DUSE_STACKSWAP -DNO_INLINE_STDARG -O2 -m68020
- LDFLAGS := -noixemul -nostartfiles -s
- LIBFILE := /ram/reqtools.library
- CFILES := reqtoolsami_init req boopsigads general filereq filereqalloc \
- filereqextra filereqmain filereqsetup \
- palettereq rtlocale \
- mem misc boopsi rtfuncs
- COBJS := $(foreach f, $(CFILES), $(f).o)
- DEPS := $(foreach f, $(CFILES), $(f).d)
- #EXTRALIB:= $(shell $(CC) --print-libgcc-file)
-
- .PHONY : all depend clean library
-
- all : $(LIBFILE)
-
- depend : $(DEPS)
-
- clean :
- rm -f *.o *.d $(LIBFILE)
-
- $(LIBFILE) : $(COBJS)
- $(LD) $(LDFLAGS) $^ $(EXTRALIB) -o $@
-
- %.o : %.c
- $(CC) $(CFLAGS) -c $< -o $@
-
- %.d : %.c
- $(CC) $(CFLAGS) -M $< -o $@
-
- ifeq (,$(filter clean depend,$(TARGET)))
- -include $(DEPS)
- endif
-